package com.xnyzc.lhy.order.entity.area;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
*
* 开通城市
*
* @author zhuyubin
* @since 2019-08-21
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysOpenArea对象", description="开通城市")
public class OaSysOpenArea implements Serializable {

private static final long serialVersionUID = 1L;

    @TableId(value="open_area_id", type = IdType.INPUT)
    private Long openAreaId;

    @ApiModelProperty(value = "省份id")
    private String provinceId;

    @ApiModelProperty(value = "省份名字")
    private String provinceName;

    @ApiModelProperty(value = "城市id")
    private String cityId;

    @ApiModelProperty(value = "城市名字")
    private String cityName;

    @ApiModelProperty(value = "城市名称（拼音）")
    private String cityPyname;

    @ApiModelProperty(value = "0-未开通。1-开通")
    private Integer isOpne;

    @ApiModelProperty(value = "是否是第三方公司")
    private Integer isThirdParty;

    @ApiModelProperty(value = "请求域名")
    private String requestUrl;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    public static final String OPEN_AREA_ID = "open_area_id";

    public static final String PROVINCE_ID = "province_id";

    public static final String PROVINCE_NAME = "province_name";

    public static final String CITY_ID = "city_id";

    public static final String CITY_NAME = "city_name";

    public static final String CITY_PYNAME = "city_pyname";

    public static final String IS_OPNE = "is_opne";

    public static final String IS_THIRD_PARTY = "is_third_party";

    public static final String REQUEST_URL = "request_url";

    public static final String TAG = "tag";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

}
